Carbon


MoveDialogItem

Header: Dialogs.h Carbon status: Supported

Moves a dialog item to a specified location in a window.

OSErr MoveDialogItem (
    DialogPtr inDialog, 
    SInt16 inItemNo, 
    SInt16 inHoriz, 
    SInt16 inVert
);
inDialog

A pointer to the dialog box containing the item to move.

inItemNo

The position of the item in the dialog box’s item list resource; use FindDialogItem to determine this value.

inHoriz

The new horizontal coordinate for the dialog item.

inVert

The new vertical coordinate for the dialog item.

function result

A result code.

DISCUSSION

The MoveDialogItem function moves a dialog item to a specified location in a window. MoveDialogItem ensures that if the item is a control, the control rectangle and the dialog item rectangle (maintained by the Dialog Manager) are always the same.

VERSION NOTES

This function is available with Appearance Manager 1.0 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when CarbonLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CarbonLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)